//
//  HomeCustomView.h
//  FD
//
//  Created by Yasin on 2018/10/12.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HomeModel.h"
#import "HomeWhirligigModel.h"

@protocol HomeCustomViewDelegate <NSObject>
/**点击了按一个cell*/
- (void)homeCustomViewDidSelectRowAtIndexPath:(NSIndexPath *)indexPath homeModel:(HomeModel *)model;

//点击定位
- (void)homeCustomViewClickLocation;
//点击消息
- (void)homeCustomViewClickMsg;
//点击外码点餐
- (void)homeCustomViewClickWaiMaiDianCan;
//点击预定
- (void)homeCustomViewClickYuDing;

//12-30点击轮播图
- (void)homeCustomViewClickWhirligigWithResource:(NSString *)resource;

/**2019-1-21点击头像*/
- (void)homeCustomViewClickAvatorAction;

@end

@interface HomeCustomView : UIView
@property (nonatomic, strong) id<HomeCustomViewDelegate> delegate;

/**设置数据并刷新数据*/
- (void)homeCustomReloadDataWithWhirligigArr:(NSArray <HomeWhirligigModel *>*)whirligigArr hotArr:(NSArray <HomeModel *>*)hotArr newGoodsArr:(NSArray <HomeModel *>*)newArr;


/**
 更新头像和昵称，viewWillAppear中调用。
 */
- (void)updateHomeAvatorAndNickname;


//显示隐藏小圆点
- (void)showRedDot;
- (void)hideRedDot;

@end
